﻿<Window x:Class="XslPad.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
        Title="XSLPad" Height="350" Width="525" WindowState="Maximized">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
            <Button Content="Transform" Click="Button_Click"/>
            <Button Content="Format" Click="Format_Click"/>
        </StackPanel>
        
        <Grid Grid.Row="1">

            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="3" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="3" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <!--
        ==========================================================================================================================================
        Sources
        ==========================================================================================================================================
        -->
            <avalonEdit:TextEditor Name="xmlTextEditor" SyntaxHighlighting="XML"
                               Grid.Column="0" Grid.Row="0"/>
            <GridSplitter Width="3" Background="Gray"
                      HorizontalAlignment="Center" VerticalAlignment="Stretch"
                      Grid.Column="1" Grid.Row="0"/>
            <avalonEdit:TextEditor Name="xslTextEditor" SyntaxHighlighting="XML"
                               Grid.Column="2" Grid.Row="0"/>


            <!--
        ==========================================================================================================================================
        -->
            <GridSplitter Height="3" Background="Gray"
                      HorizontalAlignment="Stretch" VerticalAlignment="Center"
                      Grid.Row="1" Grid.ColumnSpan="3"/>


            <!--
        ==========================================================================================================================================
        Résultat
        ==========================================================================================================================================
        -->
            <avalonEdit:TextEditor Name="resultTextEditor" SyntaxHighlighting="XML"
                               Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"/>
        </Grid>

    </Grid>
    
</Window>
